package file.day9_16.homework;

import java.io.File;
import java.io.FileFilter;

public class Test1 {
    public static void main(String[] args) {
        FileFilter filter = file->file.getName().contains("s");
        File dir = new File("./");
        if(dir.isDirectory()){
            File[] subs = dir.listFiles(filter);
            for(File file : subs){
                System.out.println(file.getName());
            }
        }
    }
}
